package cn.gson.crm.model.mapper;

import cn.gson.crm.model.pojos.Complaints;
import cn.gson.crm.model.pojos.Customer;
import cn.gson.crm.model.pojos.CustomerService;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerServiceMapper {
    //客户
    public List<Customer> selectcustomer(Integer yg);
    //查询当前人所有客户服务记录
    public List<CustomerService> selectcom(Integer cid);
    //条件查询
    public List<CustomerService> selectwhere(@Param("cid") Integer cid, @Param("where") String where);
    //根据时间查询
    public List<CustomerService> selecttime(@Param("cid") Integer cid,@Param("statr") String statr,@Param("endtime") String endtime);

}
